#ifndef __APP_DATA_H
#define __APP_DATA_H

#include "umtype.h"
#include "umdef.h"

#define MAJOR_VER       '2'
#define MINOR_VER       '8'


#pragma pack(1)

#define DWR(M)    EE_WR(EEPROM,M)
#define DRD(M)    EE_RD(EEPROM,M)


typedef struct settings_t
{
	char version[2];    //
	u8  ver;
	u32 machine_id;
	u8  wakeup_time;   // minutes  //5~120
}SettingsTypeDef;


typedef struct
{
	SettingsTypeDef      settings;

	int                x_positive_limit_pls;
}EEPROM;

extern SettingsTypeDef settings;


extern void Data_Init();

extern void Data_Reset();

#endif
